
- if submission==nil
  = "-"
- else
  - if submission.graded_at==nil
    Submitted at
    = format_short_time(submission.submitted_at)
  - else
    = "Graded at #{format_short_time(submission.graded_at)}, " 
    = "score: #{(submission.points*100/submission.problem.full_score).to_i} " if Configuration['ui.show_score']
    = " [" 
    %tt
      = submission.grader_comment
    = "]"
    - if Configuration.show_grading_result
      = " | "
      = link_to '[detailed result]', :action => 'result', :id => submission.id
    = " | "
    = link_to('[msg]', {:action => 'compiler_msg', :id => submission.id}, {:popup => true})
  = " | "
  = link_to('[src]',{:action => 'source', :id => submission.id})
  = " | "
  = link_to '[submissions]', :action => 'submission', :id => problem_name
